/**
 * Copyright 2007 American Well Systems
 * All rights reserved.
 *
 * It is illegal to use, reproduce or distribute
 * any part of this Intellectual Property without
 * prior written authorization from American Well.
 */
package org.windowkit.toolkit.databinding;

/**
 * Utilities for data binding.
 * @author Rich O'Connell
 */
public class DataBindingUtils {

	/**
	 * Return the string representation of the object.
	 * If the object is <code>null</code> this will return an empty string.
	 * <code>null</code> is never returned.
	 * @param o object
	 * @return string representation
	 */
	public static String getString(final Object o) {
		if (o == null) {
			return "";
		}
		return o.toString();
	}
}
